<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>EJS模板引擎</title>
</head>
<body>
  <h1>EJS模板引擎</h1>
  <% let name = {name1: 'a', name2: 'b'} %>
  <% let date = ['yesterday', 'today', 'tomorrow'] %>
  <%= name.name1 %>
  <% if (name) { %>
   <p>我只有在name存在时才会显示，你看到我了吗？</p>
  <% }else { %>
    <p><mark>我只有在name不存在时才会显示</mark></p>
  <% } %>

  <ul>
   <% for( let index = 0; index < time.length; index++ ) { %>
   <li> <%= time[index] %> </li>
  <% } %>
  </ul>
  <p><%= person.age %></p>
  <%- include ('footer', {msg: 'hello EJS模板引擎'}) %>
</body>
</html>